import mongoose from 'mongoose'

const Schema = mongoose.Schema;

const indexesSchema =  new Schema({
  key: { type: String , required: true },
  frequency:{type:[{doc_id: { type: Schema.Types.ObjectId, required: true},
      freq:{type: Number,required: true}}],required: true}
})
export default mongoose.model('indexes',indexesSchema);
